home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Windows 95 Programs / Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso / 0362 / bcsdk.zip / BCDDELIB.H < prev    next >
C/C++ Source or Header  |  1995-04-01  |  2KB  |  110 lines

  1. /*
  2.     BarClock(tm)
  3.  
  4.     DDE Library v1.0
  5.  
  6.     Copyright (c) 1995  Patrick Breen
  7.     All rights reserved.
  8.  
  9.     Requires BarClock/BarClock PLUS v4.0 or later.
  10.  
  11.     Atomic Dog Software
  12.     PO Box 523
  13.     Medford, MA 02155
  14.  
  15.     Phone (617) 396-2673
  16.     Fax   (617) 396-5761
  17.  
  18.     Internet:            pbreen@world.std.com
  19.     CompuServe:         70312,743
  20.     America Online:     PBreen
  21.  
  22.     FTP:     ftp.std.com    /vendors/AtomicDog
  23. */
  24. #ifndef _BCDDELIB_H
  25. #define _BCDDELIB_H
  26.  
  27. #ifndef STRICT
  28.   #define STRICT
  29. #endif
  30.  
  31. #include <windows.h>
  32.  
  33. // Include common definitions
  34. #include "bccommon.h"
  35.  
  36. // Error codes
  37. #define BCDDE_NOERROR        0
  38. #define BCDDE_MULTIPLEINIT    1
  39. #define BCDDE_INITFAIL        2
  40. #define BCDDE_NOINIT        3
  41. #define BCDDE_EXECFAIL        4
  42. #define BCDDE_HOSTFAIL        5
  43.  
  44. // Declare commands
  45. #undef DDECommand
  46. #define DDECommand(a)    eCmd##a,
  47.  
  48. enum BCDdeCommand {
  49.  
  50.     #include "bcddestr.h"
  51.     eCmdLast
  52. };
  53.  
  54. // Globals
  55. extern DWORD idInst;
  56.  
  57. // Init
  58. short BCDdeLibInit(FARPROC lpfnCallback, DWORD afCmd);
  59. void BCDdeLibFree(void);
  60.  
  61. // Utility
  62. char FAR *BCDdeString(short id);
  63. short BCDdeExecute(char FAR *pCommand);
  64.  
  65. // Network DDE
  66. short BCDdeQueryHost(HWND hWnd, char FAR *pHost, short bufLen);
  67.  
  68. void BCDdeSetHost(char FAR *pHost);
  69. void BCDdeClearHost(void);
  70.  
  71. // General
  72. short BCDdeMessage(char FAR *pMessage, short t);
  73. short BCDdeCalendar(short y, short m, short d);
  74. short BCDdeRunApp(char FAR *pCmdLine);
  75. short BCDdePlayWave(char FAR *pFileName);
  76.  
  77. // Timers
  78. short BCDdeTimerStart(char FAR *pName);
  79. short BCDdeTimerStop(char FAR *pName);
  80. short BCDdeTimerDelete(char FAR *pName);
  81. short BCDdeTimerInfo(char FAR *pName,
  82.                  char FAR *pMsg,
  83.                  char FAR *pWave,
  84.                  char FAR *pApp);
  85. short BCDdeTimerAdd(char FAR *pName,
  86.                 short tmrType,
  87.                 short dollar,
  88.                 short cent,
  89.                 short tmrInc,
  90.                 DWORD tmrLimit);
  91.  
  92. // Alarms
  93. short BCDdeAlarmDelete(char FAR *pName);
  94. short BCDdeAlarmInfo(char FAR *pName,
  95.                  char FAR *pMsg,
  96.                  char FAR *pWave,
  97.                  char FAR *pApp);
  98. short BCDdeAlarmAdd(char FAR *pName,
  99.                 short year, short month, short day,
  100.                 short hour, short min,
  101.                 short repeatType);
  102.  
  103. // Buttons
  104. short BCDdeButtonDelete(unsigned long hookSig, BYTE btnId);
  105. short BCDdeButtonAdd(unsigned long hookSig, BYTE btnId, Position pos);
  106.  
  107. // Hooks
  108. short BCDdeInstallHook(char FAR *pDllName);
  109.  
  110. #endif